/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "t_billingresult")
//@NamedQueries({@NamedQuery(name = "TBillingresult.findAll", query = "SELECT t FROM TBillingresult t"), @NamedQuery(name = "TBillingresult.findById", query = "SELECT t FROM TBillingresult t WHERE t.id = :id"), @NamedQuery(name = "TBillingresult.findByPreloadcode", query = "SELECT t FROM TBillingresult t WHERE t.preloadcode = :preloadcode"), @NamedQuery(name = "TBillingresult.findByPhonenum", query = "SELECT t FROM TBillingresult t WHERE t.phonenum = :phonenum"), @NamedQuery(name = "TBillingresult.findBySpcode", query = "SELECT t FROM TBillingresult t WHERE t.spcode = :spcode"), @NamedQuery(name = "TBillingresult.findByPordcutcode", query = "SELECT t FROM TBillingresult t WHERE t.pordcutcode = :pordcutcode"), @NamedQuery(name = "TBillingresult.findBySourcecode", query = "SELECT t FROM TBillingresult t WHERE t.sourcecode = :sourcecode"), @NamedQuery(name = "TBillingresult.findByBillingPointid", query = "SELECT t FROM TBillingresult t WHERE t.billingPointid = :billingPointid"), @NamedQuery(name = "TBillingresult.findByPoingcount", query = "SELECT t FROM TBillingresult t WHERE t.poingcount = :poingcount"), @NamedQuery(name = "TBillingresult.findByExt", query = "SELECT t FROM TBillingresult t WHERE t.ext = :ext"), @NamedQuery(name = "TBillingresult.findByResult", query = "SELECT t FROM TBillingresult t WHERE t.result = :result")})
public class TBillingresult implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Integer id;
    @Basic(optional = false)
    @Column(name = "preloadcode")
    private String preloadcode;
    @Column(name = "phonenum")
    private String phonenum;
    @Column(name = "spcode")
    private String spcode;
    @Column(name = "pordcutcode")
    private String pordcutcode;
    @Column(name = "sourcecode")
    private String sourcecode;
    @Column(name = "billingPointid")
    private String billingPointid;
    @Column(name = "Poingcount")
    private Integer poingcount;
    @Column(name = "ext")
    private String ext;
    @Column(name = "result")
    private String result;

    public TBillingresult() {
    }

    public TBillingresult(Integer id) {
        this.id = id;
    }

    public TBillingresult(Integer id, String preloadcode) {
        this.id = id;
        this.preloadcode = preloadcode;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPreloadcode() {
        return preloadcode;
    }

    public void setPreloadcode(String preloadcode) {
        this.preloadcode = preloadcode;
    }

    public String getPhonenum() {
        return phonenum;
    }

    public void setPhonenum(String phonenum) {
        this.phonenum = phonenum;
    }

    public String getSpcode() {
        return spcode;
    }

    public void setSpcode(String spcode) {
        this.spcode = spcode;
    }

    public String getPordcutcode() {
        return pordcutcode;
    }

    public void setPordcutcode(String pordcutcode) {
        this.pordcutcode = pordcutcode;
    }

    public String getSourcecode() {
        return sourcecode;
    }

    public void setSourcecode(String sourcecode) {
        this.sourcecode = sourcecode;
    }

    public String getBillingPointid() {
        return billingPointid;
    }

    public void setBillingPointid(String billingPointid) {
        this.billingPointid = billingPointid;
    }

    public Integer getPoingcount() {
        return poingcount;
    }

    public void setPoingcount(Integer poingcount) {
        this.poingcount = poingcount;
    }

    public String getExt() {
        return ext;
    }

    public void setExt(String ext) {
        this.ext = ext;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TBillingresult)) {
            return false;
        }
        TBillingresult other = (TBillingresult) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.TBillingresult[id=" + id + "]";
    }

}
